Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NextJS] REST Layout service ip resolving #1578

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

mathijs-b2m
Copy link

@mathijs-b2m mathijs-b2m commented Jul 28, 2023

Should resolve GeoIP / tracking issues when using REST Layout Service together with next application running in containerized environment.

Description / Motivation

When the REST Layout service is called from the Next application, when running containerized (instead of Vercel or other SWA environments) the x-forwarded-ip header should be forwarded instead of the socket remote address which can belong to a load balancer. Also replaced connection for socket as its deprecated since v16.

Testing Details

The solution should still be tested on other environments so it does not break functionality there.

  • Tested on local Development with traefik / docker.
  • Tested on Vercel
  • Test with Azure SWA
  • Tested on AKS / ingress container

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@mathijs-b2m mathijs-b2m marked this pull request as ready for review July 28, 2023 12:01
@illiakovalenko illiakovalenko added the backlog Issue/PR/discussion is reviewed and added to backlog for the further work label Aug 1, 2023
@illiakovalenko
Copy link
Contributor

@mathijs-b2m Thanks for your report and contribution! I've created a ticket with all the details in our internal backlog to review and merge PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Issue/PR/discussion is reviewed and added to backlog for the further work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants